package com.ybkj.chat.module.friend_center.activity;

import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.ybkj.chat.R;
import com.ybkj.chat.base.BaseMvpActivity;
import com.ybkj.chat.ui.adapter.ChatRecordAdapter;
import com.ybkj.chat.ui.view.recyclerview.XRecyclerView;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * 搜索聊天记录8.44
 */
public class ChatRecordActivity extends BaseMvpActivity {

    @BindView(R.id.commom_rl)
    RelativeLayout commomRl;
    @BindView(R.id.iv_search)
    ImageView ivSearch;
    @BindView(R.id.edit_groupname)
    EditText editGroupname;
    @BindView(R.id.xrc_chatrecord)
    XRecyclerView xrcChatrecord;
    private ChatRecordAdapter mChatRecordAdapter;

    @Override
    protected void injectPresenter() {

    }

    @Override
    protected void initTitle() {
        setTitleText("聊天记录");
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_chat_record;
    }

    @Override
    protected void initView() {
        initrecycle();
    }

    private void initrecycle() {
        mChatRecordAdapter = new ChatRecordAdapter(mContext);
        mChatRecordAdapter.addData("1");
        mChatRecordAdapter.addData("1");
        mChatRecordAdapter.addData("1");
        xrcChatrecord.setAdapter(mChatRecordAdapter);
    }

    @Override
    protected void initData() {

    }


    @OnClick({R.id.iv_search, R.id.cancel})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.iv_search:
                break;
            case R.id.cancel:
                break;
        }
    }
}
